package com.example.common.user.view;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.example.common.R;


/**
 * 登录和注册的首页，有登录和注册两个按钮
 */
@Route(path = "/common/user/LoginRegisterActivity")
public class LoginMainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login_main);
    }

    /**
     * 点击打开注册界面
     * @param view
     */
    public void onClickOpenRegister(View view){
        Intent intent=new Intent(this, RegisterActivity.class);
        startActivity(intent);
    }

    public void onClickOpenLogin(View view){
        Intent intent=new Intent(this, LoginActivity.class);
        startActivity(intent);
    }

}